package org.apache.hadoop.hive.ql.exec.mr3;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * MR3JobExecHelper is a utility to safely call MR3 functionality from common
 * code paths. It will check if MR3 is available/installed before invoking the
 * code
 * 
 * @author pl
 */
public class MR3JobExecHelper {
	private static final Log LOG = LogFactory.getLog(MR3JobExecHelper.class.getName());

	public static void killRunningJobs() {
		try {
			// TODO:
			// - load class MR3 job monitor
			// - load method kill running jobs and invoke

		} catch (Exception e) {
			LOG.debug("Could not stop MR3 dags: ", e);
		}
	}
}
